<style>
    .panel-fieldlist .fieldlist dd ins {
        width: 20%;
    }

    .panel-fieldlist .fieldlist dd input, .panel-fieldlist .fieldlist dd select {
        width: 100%;
    }

    .list-group-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .groups {
        display: flex;
        align-items: center;
    }

    .title {
        font-weight: bold;
        font-size: 16px;
    }

    .list-group .list-group-item .label {
        padding: 5px 10px;
    }

    .table-goods > thead > tr > th, .table-goods > tbody > tr > th, .table-goods > thead > tr > td, .table-goods > tbody > tr > td {
        vertical-align: middle;
    }

    .order-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .print-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    @media print {
        .electronics, .btn-print-page, .memo-operate {
            display: none;
        }
    }
</style>
<div id="app">
    <div class="panel panel-default">
        <div class="panel-heading">
            申报详情
            <a href="javascript:;" onclick="window.print();" class="btn btn-info btn-xs pull-right btn-print-page">
                <i class="fa fa-print"></i>
                打印
            </a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-xs-6">
                    <ul class="list-group">
                        <button class="btn-refresh hidden"></button>
                        <input type="hidden" id="order_id" value="{$row.id}">
                        <li class="list-group-item">订单号：{$row.orderNo}</li>
                        <!--@formatter:off-->
                        <li class="list-group-item order-status">
                            <div>
                                申报状态：
                                {if $row['status']==0}
                                    {if $row['status'] == 0}
                                        <span class="label label-danger">待申报</span>
                                    {elseif $row['status'] == 1}

                                        {if $row['shippingstate'] == 0}
                                            <span class="label label-danger">待发货</span>
                                        {elseif $row['shippingstate'] == 1}
                                            <span class="label label-danger">已发货</span>
                                        {elseif $row['shippingstate'] == 2}
                                            <span class="label label-danger">待评价</span>
                                        {/if}

                                    {/if}
                                {elseif $row['status'] == 1}
                                    <span class="label label-danger">已取消</span>
                                {elseif $row['status'] == 2}
                                    <span class="label label-danger">已失效</span>
                                {elseif $row['status'] == 3}
                                    <span class="label label-danger">已完成</span>
                                {elseif $row['status'] == 4}
                                    <span class="label label-danger">退货/退款中</span>
                                    {if $row['shippingstate'] == 0}
                                        <span class="label label-danger">待发货</span>
                                    {elseif $row['shippingstate'] == 1}
                                        <span class="label label-danger">已发货</span>
                                    {elseif $row['shippingstate'] == 2}
                                        <span class="label label-danger">待评价</span>
                                    {/if}
                                {/if}
                            </div>
                            <div>
                                {if $row['status']==0 || $row['status']==4}
                                        <button type="button" class="btn btn-success btn-status-click" data-order='{"paystate":1}'>立即申报</button>
                                    
                                {/if}
                            </div>
                        </li>
                        <!--@formatter:on-->
                        <li class="list-group-item">下单用户：{$row.buyerRegNo}</li>
                        <li class="list-group-item">商品费用：{$row.goodsValue}</li>
                        <li class="list-group-item">保费：{$row.insuredFee}</li>
                        <li class="list-group-item">实付金额：{$row.goodsValue}</li>
    
                    </ul>
                </div>
                <div class="col-xs-6">
                    <ul class="list-group">
                        <li class="list-group-item">申报日期：{$row.declTime}</li>
                        <li class="list-group-item">支付企业代码：312226T001</li>
                        <li class="list-group-item">交易流水号：{$row.payTransactionId}</li>
                        <li class="list-group-item">物流运单号：{$row.logisticsNo}</li>
                        <li class="list-group-item">毛重(公斤)：{$row.grossWeight}</li>
                        <li class="list-group-item">净重(公斤)：{$row.netWeight}</li>

                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!--  -->
    <div class="panel panel-default">
        <div class="panel-heading print-flex">
            <span>收货/发货信息</span>
        </div>
       <div class="panel-body">
    <div class="row">
        <input type="hidden"  name="row[orderNo]" value="{$row.orderNo}">
        <div class="col-xs-6">
            <p>收货人的姓名：{$row.consignee}</p>
            <p>收货人的手机：{$row.consigneeTelephone}</p>
            <p>收货人身份证：{$row.buyerIdNumber}</p>
            <p>收货人的地址：{$row.consigneeAddress}</p>
        </div>
        <div class="col-xs-6">
            <p>货物包装方式：木箱</p>
            <p>物流企业登记编号：4101985185</p>
            <div class="col-xs-6">
                <p>发货人国(代码)：<input class="form-control" type="text" name="row[shipperCountry]" value="{$row.shipperCountry}"></p>
            </div>
            <div class="col-xs-6">
                <p>发货人的姓名：<input class="form-control" type="text"  name="row[shipper]" value="{$row.shipper}"></p>
            </div>
            <p>发货人的手机：<input class="form-control" type="text" name="row[shipperTelephone]" value="{$row.shipperTelephone}"></p>
            <p>发货人的地址：<input class="form-control" type="text" name="row[shipperAddress]" value="{$row.shipperAddress}"></p>
            <div class="col-xs-6">
                <p>毛重(公斤)：<input class="form-control" type="text" name="row[grossWeight]" value="{$row.grossWeight}"></p>
            </div>
            <div class="col-xs-6">
                <p>净重(公斤)：<input class="form-control" type="text"  name="row[netWeight]"  value="{$row.netWeight}"></p>
            </div>
            <button type="button" class="btn btn-success btn-deliver" data-id="{$row.orderNo}" data-field="shipper">保存物流信息</button> <!-- 添加了data-id和data-field属性 -->
        </div>
    </div>
</div>
    </div>
    <!-- 商品信息 -->
    <div class="panel panel-default">
        <div class="panel-heading">
            <span>商品信息</span>
        </div>
        <div class="panel-body">
            <div class="goods">
                <table class="table table-bordered table-goods">
                    <thead>
                    <tr>
                        <th class="text-center">序号</th>
                        <th class="text-center">货号</th>
                        <th>名称</th>
                        <th class="text-center">图片</th>
                        <th class="text-center">属性</th>
                        <th class="text-center">市场价</th>
                        <th class="text-center">商城价</th>
                        <th class="text-center">数量</th>
                        <th class="text-center">实际价</th>
                        <th class="text-center">售后状态</th>
                    </tr>
                    </thead>
                    <tbody>
                   
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">
        <span>订单操作日志</span>
    </div>
    <div class="panel-body">
        <table class="table table-bordered table-goods">
            <thead>
            <tr>
                <th>ID</th>
                <th>操作人</th>
                <th>操作记录</th>
                <th>操作时间</th>
            </tr>
            </thead>
            <tbody>
           
            </tbody>
        </table>
    </div>
</div>



{include file="shop/order/invoicetpl" /}
